﻿using System.Collections.Generic;

namespace HinduShop.Domain.Models
{
    public class Store
    {
        public virtual int Id { get; set; }
        public virtual string Name { get; set; }
        public virtual  string Address{ get; set; }
        public virtual IList<Product> Products { get; set; }

        public Store()
        {
            Products = new List<Product>();
        }

        public virtual void AddProduct(Product product)
        {
            product.Stores.Add(this);
            Products.Add(product);
        }
    }
}